package org.biodas.jdas.exceptions;

/**
 * Created by IntelliJ IDEA.
 * User: ljgarcia
 * Date: 28/02/12
 * Time: 16:43
 * To change this template use File | Settings | File Templates.
 */
public class ErrorInSource {
    private String source;
    private Exception exception;

    public ErrorInSource(String source, Exception exception) {
        this.source = source;
        this.exception = exception;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    @Override
    public String toString() {
        return "(" + this.source + "," + this.exception.getMessage() + ")";
    }
}
